<html>
<head></head>
<body>

<?
include("User.class.php");
include("Product.class.php");

if (isset($_REQUEST['id'])
    && isset($_REQUEST['name'])
    && isset($_REQUEST['description']) 
    && isset($_REQUEST['price']))
  {
    print "got product: ".$_REQUEST['id']."/".$_REQUEST['name']."/".$_REQUEST['description']."/".$_REQUEST['price']."/";
    $product = new Product($_REQUEST['id']);
    $product->set_from_web_post($_REQUEST);
    $product->save();
  }
else
  {
    print "no or not enough params given";
  }

?>

</body>
</html>